package com.ym521.simple

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        findViewById<View>(R.id.btnView).setOnClickListener {
            startActivity(Intent(this,ViewSkeletonActivity::class.java))
        }

        findViewById<View>(R.id.btnRecyclerView).setOnClickListener {
            startActivity(Intent(this,RecyclerViewSkeletonActivity::class.java))
        }

        findViewById<View>(R.id.btnListView).setOnClickListener {
            startActivity(Intent(this,ListViewSkeletonActivity::class.java))
        }

        findViewById<View>(R.id.btnGridView).setOnClickListener {
            startActivity(Intent(this,GridViewSkeletonActivity::class.java))
        }
        findViewById<View>(R.id.btnBlockView).setOnClickListener {
            startActivity(Intent(this,BlockViewActivity::class.java))
        }
    }
}